<template>
    <div>
        <TestCom @myEvent="test"></TestCom>
        <Button @click="consoleRoute">打印当前rute</Button>
        <input type="text" :value="b">
        <input v-model="b"/>
        {{b}}<br/>
        <div v-text="b"></div><br/>
        <span v-once>{{b}}</span>
    </div>
</template>

<script type="text/ecmascript-6">
    import TestCom from '../components/test.vue'
    export default{
        components: {
            TestCom
        },
        data () {
            return {
                b:'绑定一次'
            }
        },
        methods: {
            test(a){
                console.log(a);
            },
            consoleRoute(){
                console.log(this.$route.path);
            }
        },
        created(){

        },
        munted(){

        }
    }
</script>

<style scoped>

</style>